From 02cace035e1851558427f3695bcacab46dc1b4bb Mon Sep 17 00:00:00 2001 From: robertlipe Date: Tue, 12 Feb 2013 01:28:38 +0000 Subject: [PATCH] Correct over-aggressive xstrdup removal. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4307 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/gbfile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/gbfile.cc b/gpsbabel/gbfile.cc index a021320b5..d0abd48cd 100644 --- a/gpsbabel/gbfile.cc +++ b/gpsbabel/gbfile.cc @@ -1256,7 +1256,7 @@ gbfputpstr(const char* s, gbfile* file) int gbfputpstr(const QString s, gbfile* file) { - const char *t = s.toUtf8().data(); + const char *t = xstrdup(s.toUtf8().data()); int r = gbfputpstr(t, file); xfree(t); return r; -- 2.30.2